<?php

class Db_Tables_AdminGroups extends Zend_Db_Table
{
    protected $_name = 'admin-groups';
	
	function MakeCategoryArray()
	{
		$result = array();
		
		$select = $this->select();
		$select->where("group_status = ?", 1);
		$data = $this->fetchAll($select);
		
		if(!empty($data))
		{
			foreach($data as $d)
			{
				$result[$d['group_id']] = $d['group_name'];
			}
		}
		
		return $result;
	}
}